<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>

<c:forEach items="${categoryList}" var="category" varStatus="varStatus">
	<li id='${category.categoryId}'>
		<span categoryName="${category.categoryName}" depth="${category.depth}" categoryPath="${category.categoryPath}">
			<b class="<catalog:contentCategoryIcon categoryType="${category.categoryType}"/>">&nbsp;</b>
			${category.categoryName}
		</span>
		<c:if test="${category.hasChildren==1}">
			<ul  class="ajax">
				<li id="load_${category.categoryId}">{url:${ctxPath}/product/virtualCategory.html?doAction=getTreeItems&decorator=blank&categoryId=${category.categoryId}}</li>
			</ul>
		</c:if>
	</li>
</c:forEach>